package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

@FeignClient("cart-service")// 负载均衡服务器地址，Feign客户端
public interface CartClinet {
    /**
     *购物车条目id集合
     * @param ids
     */
    @DeleteMapping("/carts")
    public void removeByItemIds(@RequestParam("ids") Set<Long> ids);
}
